home *** CD-ROM | disk | FTP | other *** search
- unit Demo;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- Buttons, StdCtrls, ExtCtrls, AppBar;
-
- type
- TDemoBar = class(TAppBar)
- btnProperties: TBitBtn;
- procedure btnPropertiesClick(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- DemoBar: TDemoBar;
-
- implementation
-
- uses DemoProp;
-
- {$R *.DFM}
-
- procedure TDemoBar.btnPropertiesClick(Sender: TObject);
- begin
- if PropDlg.ShowModal = mrOk then UpdateBar;
- end;
-
- initialization
- SetWindowLong(Application.Handle, GWL_EXSTYLE, WS_EX_TOOLWINDOW);
- end.
-